from rest_framework import serializers
from .models import *


class ProductSalesSerializer(serializers.ModelSerializer):
    amount_left = serializers.IntegerField(read_only=True)

    class Meta:
        model = ProductSales
        exclude = ['datetime_created', 'datetime_updated']
